<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link href="/static/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/static/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script><![endif]-->
<title>客需跟進查看</title>
<style type="text/css">
  .left{float:left;}
</style>
</head>
<body>
<div class="pd-20">
  <form action="" method='post'>
    <p><input type="text" class="input-text" name="content" placeholder="寫跟進" required style='width:200px'></p>
    <p><button class="btn btn-primary radius" id="submit" type="submit"><i class="Hui-iconfont">&#xe600; 添加跟进</a></p>
  </form>
</div>
<div class="mt-20">
    <table class="table table-border table-bordered table-bg table-hover table-sort">
      <thead>
        <tr class="text-c">
          <th width="20">跟进编码</th>
          <th width="150">跟进内容</th>
          <th width="30">跟进人</th>
          <th width='40'>时间</th>
          <th width='10'>操作</th>
        </tr>
      </thead>
      <tbody>
        {foreach name='data' item='v'}
        <tr class="text-c va-m you">
          <td>{$v.sid}</td>
          <td>{$v.content}</td>
          <td>{$v.uname}</td>
          <td>{$v.date}</td>
          <td><a style="text-decoration:none" class="ml-5" onClick="followinfo_del(this,'{$v.id}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
        </tr>
        {/foreach}
      </tbody>
    </table>
  </div>
{include file='public/footer'}
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
  <script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript">
  $().ready(function(){
    $('form').validate({
      submitHandler:function(form){
        $(form).ajaxSubmit({
          type:'post',
          url:'{:url('vip_follow')}?vid={:input('get.vid')}',
          dataType:'text',
          success:function(res){
              layer.msg('添加成功',{icon:1,time:1500},function(){location.reload();});

          }
        })
      }
    });
  })

function followinfo_del(obj,id){
  layer.confirm('确定要删除么',function(index){
    $.post('follow_del.html','id='+id,function(res){
          location.reload();
    });
  });
  
}
</script>